package app.auto.runner.base.intf;

import java.io.IOException;

/**
 * Created by litli on 2017/6/23.
 */

public abstract class FunCallback<T> {

    public Object getHost(){
        return "";
    }

    public FunCallback nextFuncallback;


    public FunCallback getNextFuncallback() {
        return nextFuncallback;
    }

    public Object result;

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public void simpleRun(Object aty, Object... p) {
    }

    public Object doandget() {
        return null;
    }

    public Object[] params;

    public Object tracnsfer(Object... o) {
        return "";
    }

    public void onCallback(T result, Object object) {

    }

    private Object object = new Object();

    public Object getParam() {
        return object;
    }


    public FunCallback setParam(Object object) {
        this.object = object;
        return this;
    }

    public Object onResult(Object rv, Object o) {
        return null;
    }

    public void onFailure(IOException e, Object o) {

    }
}
